


#include "debug.h"


FILE *g_stream = NULL;




void debug_init()
{
    g_stream = fopen("messages", "wb+"); 

    return;
}

#if 0

void debug_print()
{




}






void debug_log(char *fmt, ...)
{
    char buffer[200];
    va_list ap;

    va_start(ap, fmt);
    vsprintf(buffer, fmt, ap);
    va_end(ap);

    
    fprintf(g_stream, buffer);
    
    return;
}
#endif


